import { BaseEntity } from '@/modules/core/base/BaseEntity';
import { Exclude } from 'class-transformer';
import { Column, CreateDateColumn, Entity } from 'typeorm';

export abstract class BaseToken extends BaseEntity {
  @Column({ comment: 'token' })
  value!: string;

  @Column({
    comment: '令牌过期时间',
  })
  expired_at!: Date;

  @CreateDateColumn({
    comment: '令牌创建时间',
  })
  createdAt!: Date;
}
